package com.jds.architecture.authenticate;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.jds.architecture.abstraction.AbstractAction;



/**
 * 
 */
public class LogoffAction extends AbstractAction {

	/**
	 * 
	 */
    public ActionForward execute(ActionMapping actionMapping,
            ActionForm form, 
            HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        /*
         * invalidates session
         */
        request.getSession().invalidate();
        return actionMapping.findForward("success");
    }

}
